import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';

export default async function a001(fd: IFeidaoAiBrowserComponent) {
	//隐患源窗口显示&传值
	const n = fd.data.node.querySelector<HTMLDivElement>('[data-id="yinhuanyuan"]');
	set_node_cls(n, 'display-n', false);

	const res = await nodejs('risk-point/zj-000008/s001', {
		filter: {
			page_no: 1,
			hidden_source: '',
			hidden_name: '',
		}
	});
	render(fd, res, p001, 'p001', 'inner');
}
